package com.novellotus.iov.carvice.activity;


import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;

import com.novellotus.iov.carvice.R;
import com.novellotus.iov.carvice.model.PerfectRegisterModel;
import com.novellotus.iov.carvice.utils.MyUtils;

import butterknife.BindView;
import butterknife.OnClick;


/**
 * 完成注册页面
 */
public class PerfectRegisterActivity extends BaseActivity {

    @BindView(R.id.edt_nick_name)
    EditText edt_nick_name;
    //@BindView(R.id.edt_email)
    // EditText edt_email;
    @BindView(R.id.edt_password)
    EditText edt_password;
    @BindView(R.id.btn_sure)
    Button btn_sure;

    PerfectRegisterModel perfectRegisterModel;

    @Override
    protected void initContentView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_perfect_register);
    }

    @Override
    public void init() {
        Bundle bundle = getIntent().getExtras();
        perfectRegisterModel = new PerfectRegisterModel(this);
        perfectRegisterModel.setNickName(edt_nick_name);
        //   perfectRegisterModel.setEmail(edt_email);
        perfectRegisterModel.setPassword(edt_password);
        perfectRegisterModel.setConfirm(btn_sure);
        perfectRegisterModel.setBtnSure(btn_sure, bundle.getString("mobile"), edt_nick_name, edt_password);
    }

    @OnClick(R.id.rlt_top)
    void back() {
        MyUtils.hideInput(this);
        finish();
    }

}
